import { RouteRecordRaw } from 'vue-router'
export const Layout = () => import('@/layout/index.vue')

export const classroomRoutes: RouteRecordRaw[] = [
  {
    path: '/classroomRental',
    component: Layout,
    redirect: '/classroomRental/onlineRental',
    meta: { title: '教室租赁', icon: '' },
    children: [
      {
        path: 'onlineRental',
        component: () => import('@/views/classroomRental/onlineRental.vue'),
        name: 'OnlineRental',
        meta: {
          title: '在线租赁',
          icon: '',
          affix: false,
          keepAlive: true,
        },
      },
      {
        path: 'classroomList',
        component: () => import('@/views/classroomRental/classroomList.vue'),
        name: 'ClassroomList',
        meta: {
          title: '可租赁教室',
          icon: '',
          affix: false,
          keepAlive: true,
        },
      },
      {
        path: 'classroomCreateUpdate',
        component: () => import('@/views/classroomRental/classroomCreateUpdate.vue'),
        name: 'ClassroomCreateUpdate',
        meta: {
          title: '创建/修改教室',
          icon: '',
          affix: false,
          keepAlive: true,
          hidden: true,
          activeMenu: 'ClassroomList',
        },
      },
      {
        path: 'classroomHome',
        component: () => import('@/views/classroomRental/classroomHome.vue'),
        name: 'ClassroomHome',
        meta: {
          title: '管理',
          icon: '',
          affix: false,
          keepAlive: true,
          hidden: true,
          activeMenu: 'ClassroomList',
        },
      },
      {
        path: 'rentalBillingRules',
        component: () => import('@/views/classroomRental/rentalBillingRules.vue'),
        name: 'RentalBillingRules',
        meta: {
          title: '计费规则',
          icon: '',
          affix: false,
          keepAlive: true,
        },
      },
    ],
  },
]
